import request from "@/request/";

export const getOrderList = (data) => {
  return request({
    url: "/api/mes-production-service/work-order/page",
    method: "post",
    data,
  });
};

export const getBomList = (data) => {
  return request({
    url: "/api/mes-production-service/work-order/bom/page",
    method: "post",
    data,
  });
};

export const getLogList = (data) => {
  return request({
    url: "/api/mes-production-service/work-order/log/page",
    method: "post",
    data,
  });
};

export const updateRoute = (data) => {
  return request({
    url: "/api/mes-production-service/work-order/craft-route/edit",
    method: "post",
    data,
  });
};
